#!/usr/bin/env node
const username= process.argv[2],
      password= process.argv[3];

console.log('user name:',username)
console.log('password:',password)

if(process.argv.length !== 4) {
    console.error('usage：cmd username password');
    process.exit(1);
  }
  

const msg = `${username}:${password}`

console.log('msg:',msg);

const buf=Buffer.from(msg);
console.log('base64:',buf.toString('base64'));



